import 'package:card_swiper/card_swiper.dart';
import 'package:flutter/material.dart';

class HomeCarouseiImgView extends StatefulWidget {
  const HomeCarouseiImgView({super.key});

  @override
  State<HomeCarouseiImgView> createState() => _HomeCarouseiImgViewState();
}

class _HomeCarouseiImgViewState extends State<HomeCarouseiImgView> {
  @override
  Widget build(BuildContext context) {
    return Swiper(
      onTap: (index) {
        print('click$index');
      },
      itemBuilder: (context, index) {
        return Image.asset("lib/Project/Images/Home/home_banner@2x.png",fit: BoxFit.fill);
      },
      itemCount: 3,
      autoplay: true,
      autoplayDelay: 10,
      pagination: SwiperPagination(
        builder: DotSwiperPaginationBuilder(
          activeColor: Colors.red,
          color: Colors.blue
        )
      ),
      //control: SwiperControl(),
    );
  }
}